package cn.lut;


import cn.lut.da08.SomeService;
import cn.lut.da08.impl.SomeServiceImpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @user:dell
 * @date:2020年10月30 09:21
 */
public class Mytest8 {
    @Test
    public void test1(){
        String config="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(config);
        SomeService bean = (SomeService) applicationContext.getBean("myService8");
        System.out.println("代理的方式为:"+bean.getClass().getName());
        bean.doSome("张三",55);

    }

}
